package org.tc.client.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.tc.client.entity.Comments;

public interface CommentsMapper {
    int deleteCommentsById(Integer id);

    int insertComments(Comments  comments);

    List<Comments> selectCommentsByComId(Integer commodityid);

    List<Comments> selectCommentsByGood(@Param("commodityid") Integer commodityid);

    List<Comments> selectCommentsByMiddle(@Param("commodityid") Integer commodityid);

    List<Comments> selectCommentsByBad(@Param("commodityid") Integer commodityid);

    int updateByPrimaryKey(Comments record);
}